package com.hgyc.mom.tool.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.hgyc.mom.common.annotation.Excel;
import com.hgyc.mom.core.mybatis.Like;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 自定义报
 * </p>
 *
 * @author fwj
 * @since 2025-04-29
 */
@Data
@TableName("tool_custom_report")
@Schema(name="自定义报对象", description="自定义报对象")
public class CustomReport implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "")
    private Long id;

    @Excel(name = "报表名称")
    @Like
    @Schema(description = "报表名称")
    private String reportName;

    @Excel(name = "报表编码")
    @Like
    @Schema(description = "报表编码")
    private String reportCode;

    @Excel(name = "sql语句")
    @Schema(description = "sql语句")
    private String sqlScript;

    @Excel(name = "描述")
    @Schema(description = "描述")
    private String description;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "")
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "")
    private Long updateBy;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "")
    private LocalDateTime updateTime;

}